<div class="panel panel-default">
	<div class="panel-heading newsfeed">
		<p>Chat Message</p>
	</div>
	<div class="panel-body mail">
		<div class="row">
			<div class="col-sm-3 col-md-3">
				<!--<a href="#" class="btn btn-danger btn-sm btn-block" role="button">COMPOSE</a>-->
				
				
			</div>
			<div class="col-sm-9 col-md-9">
				<!-- /input-group -->
				<!-- Split button -->
				<div class="btn-group">
					<button type="button" class="btn btn-default">Back</button>
					<button type="button" class="btn btn-default">Delete</button>
					
					
				</div>
				
				<!-- Single button -->
				
				<div class="pull-right">
					<span class="text-muted"><b>1</b>–<b>50</b> of <b>277</b></span>
					<div class="btn-group btn-group-sm">
						<button type="button" class="btn btn-default">
							<span class="glyphicon glyphicon-chevron-left"></span>
						</button>
						<button type="button" class="btn btn-default">
							<span class="glyphicon glyphicon-chevron-right"></span>
						</button>
					</div>
				</div>
			</div>
		</div>
		<hr />
		<div class="row">
			<div class="col-sm-3 col-md-3">
				
				<?php echo $this->template->widget("cms_appmenu_widget", array("menu_name"=>"mail_menu"));?>
			
			</div>
			<div class="col-sm-9 col-md-9">
				<!-- Nav tabs -->
				<ul class="nav nav-tabs">
					<li class="active"><a href="#home" data-toggle="tab"><span class="glyphicon glyphicon-inbox">
					</span>Chat With <?=$zapmember['firstname']?></a>
					</li>
					
					
				</ul>
				<!-- Tab panes -->
				<div class="tab-content">
					<div class="tab-pane fade in active" id="home">
						<div class="list-group">
							<?php foreach($previous_message as $message){?>
							<a href="#" class="list-group-item">
								<img src="<?php echo base_url(); ?>assets/uploads/.thumbs/images/zap/<?php echo $message['photo'] == '' ? DEFAULT_IMG : $message['photo'] ; ?>" alt="Profile-img"  height="32" width="32">
								<span class="name" style="min-width: 120px;
									display: inline-block;"><?=$message['firstname']?></span>  <span class=""><?=$message['message']?></span>
								<span class="badge"><?=date('m/d/Y h:i A', strtotime($message['sent']));?></span>  
									
							</a>
							<?}?>
						</div>
					</div>
				</div>
				
			</div>
		</div>
	</div>
</div>

  
